package com.alibaba.citrus.ots.platform.enhance.api.scitem;

import com.alibaba.citrus.ots.platform.enhance.dto.api.request.*;
import com.alibaba.citrus.ots.platform.enhance.dto.api.response.ScItemResponse;
import com.epoch.app.otsplatformenhance.model.dto.ScItemSDO;
import com.alibaba.cz.base.tool.page.PageResult;
import com.alibaba.cz.base.tool.result.Result;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;

import java.util.List;

/**
 * @author zls
 * @description: 货品接口
 * @date 2021/9/9 15:30
 */
@MeshFlowService(apps = {"bc_ots"}, name = "ScItemQueryService")
public interface ScItemQueryService {

    /**
     * 根据id查询货品
     * @param request
     * @return
     */
    Result<ScItemSDO> getScItemById(IdQueryRequest request);

    /**
     * 分页查询货品
     * @param request
     * @return
     */
    Result<PageResult<List<ScItemSDO>>> pageQueryScItemList(QueryScItemRequest request);
}
